package com.site.wisdom_construction.service.iotModule;

import com.site.wisdom_construction.dao.iotModule.PersonnelPositioningRecordDao;
import com.site.wisdom_construction.entity.iotModule.PersonnelPositioningRecord;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2022/3/10
 * @Description
 */
@Service
public class PersonnelPositioningRecordService implements PersonnelPositioningRecordDao {
    @Autowired
    private PersonnelPositioningRecordDao positioningRecordDao;

    @Override
    public int insertPersonnelPositioningRecord(Map map) {
        return positioningRecordDao.insertPersonnelPositioningRecord(map);
    }

    @Override
    public int deletePersonnelPositioningRecord(Map map) {
        return positioningRecordDao.deletePersonnelPositioningRecord(map);
    }

    @Override
    public int updatePersonnelPositioningRecord(Map map) {
        return positioningRecordDao.updatePersonnelPositioningRecord(map);
    }

    @Override
    public PersonnelPositioningRecord findPersonnelPositioningRecordByTagId(Map map) {
        return positioningRecordDao.findPersonnelPositioningRecordByTagId(map);
    }

    @Override
    public int countALL(Map map) {
        return positioningRecordDao.countALL(map);
    }

    @Override
    public List<PersonnelPositioningRecord> findPersonnelPositioningRecordByEquipmentId(Map map) {
        return positioningRecordDao.findPersonnelPositioningRecordByEquipmentId(map);
    }

    @Override
    public int deletePersonnelPositioningRecordByUpdateTime(Map map) {
        return positioningRecordDao.deletePersonnelPositioningRecordByUpdateTime(map);
    }
}
